/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.heathrowapi;

import cz.muni.fi.heathrowapi.dto.DestinationDTO;
import cz.muni.fi.heathrowapi.dto.FlightDTO;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author Ufonzak
 */
public interface FlightService
{    
    public void create(FlightDTO flight);
    
    public FlightDTO get(Long id);
 
    public void update(FlightDTO flight);
    
    public void remove(FlightDTO flight);
   
    public List<FlightDTO> findAll();
    
    public List<FlightDTO> findByTakeoff(Calendar from, Calendar till);
    
    public List<FlightDTO> findByDestination(DestinationDTO destination);
}
